package com.ybkj.daijia.server.service;

import com.ybkj.daijia.server.model.UsuallyEmploy;
import com.ybkj.daijia.server.model.UsuallyEmploy.ServiceType;
import java.util.List;

/**
 * @author Shine
 */
public interface UsuallyEmployService {

    /**
     * 保存常用司机信息
     *
     * @param usuallyDriver
     * @return
     */
    public UsuallyEmploy insertRecord(UsuallyEmploy usuallyEmploy);

    /**
     * 根据主键查询司机信息
     *
     * @param id
     * @return
     */
    public UsuallyEmploy findOne(Long id);

    /**
     * 根据会员查询未被冻结的常用司机
     *
     * @param memberId
     * @return
     */
    public List<UsuallyEmploy> getUsuallyEmploy(Long passengerId, String serviceType);

    public UsuallyEmploy findByEmployAndPassenger(Long employId, Long passengerId,
        ServiceType serviceType);

    public void delete(UsuallyEmploy usuallyEmploy);

    public int deleteById(Long id);

    List<UsuallyEmploy> findUsuallyEmploy(Long passengerId, Integer offset,
        Integer size);

    Long countUsuallyEmploy(Long passengerId);

}
